var weidenglu = document.querySelector(`.weidenglu`)
var denglu = document.querySelector(`.denglu`)
var exit = document.querySelector(`.exit`)
var username = document.querySelector(`.username`)
var huanying = document.querySelector(`.huanying`)
var zhuce = document.querySelector(`.zhuce`)


var a = getCookie(`username`)
if (a) {
    huanying.style.display = `block`
    weidenglu.style.display = `none`
    username.innerText = a
    
}


// exit.onclick = function () {
//     removeCookie(`username`)
//     huanying.style.display = `none`
//     weidenglu.style.display = `block`
//     location.href = `22-1主页.html`

// }